package String;

public class IndexOfDemo1 {
    public static void main(String[] args) {
        String str="Process finished with exit code 0";
        int index=str.indexOf("wi",5);
        System.out.println(index);
        index=str.lastIndexOf("co");
        System.out.println(index);
        index=str.lastIndexOf("co",30);
        System.out.println(index);
    }
}
